<!-- 模态框（Modal） -->
<div class="modal fade" id="role-create-modal" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <form id="role-create-form" action="/role/" method="post">
                <div id="role-create-box" class="box box-primary box-solid">
                    <div class="box-header with-border">
                        <h3 class="box-title role-create-title"></h3>
                    </div><!-- /.box-header -->
                    <div class="box-body">
                        <div id="role-create-msg" class="alert alert-danger alert-dismissable">
                            <p></p>
                        </div>
                        <div class="row">
                            <div class="col-md-6">
                                <form id="role-create-form" class="form-inline" role="form">

                                    <div class="form-group">
                                        <input id="id" name="id" type="hidden" class="form-control" placeholder=""/>
                                    </div>
                                    <div class="form-group">
                                        <label>父id</label>
                                        <select class="form-control" id="group_id" name="group_id" >
                                            <option value="">全部</option>
                                        <#list pids as role>
                                            <option value="${role.group_id}">${role.group_id}</option>
                                        </#list>
                                        </select>
                                    </div>
                                    <div class="form-group">
                                        <label>角色code</label>
                                        <input id="role_code" name="role_code" type="text" class="form-control" placeholder=""/>
                                    </div>
                                    <div class="form-group">
                                        <label>角色名称</label>
                                        <input id="role_name" name="role_name" type="text" class="form-control" placeholder=""/>
                                    </div>
                                    <div class="form-group">
                                        <label>资源url</label>
                                        <input id="resource_url" name="resource_url" type="text" class="form-control" placeholder=""/>
                                    </div>
                                    <div class="form-group">
                                        <label>启用</label>
                                        <select class="form-control" id="enable" name="enable" >
                                            <option value ="1" >是</option>
                                            <option value ="2" >否</option>
                                        </select>
                                    </div>
                                </form>
                            </div>
                        </div>

                    </div><!-- /.box-body -->
                    <div class="box-footer">
                        <a href="javascript:;" class="btn btn-success save-btn">保存</a>
                        <a href="javascript:;" class="btn btn-default cancel-btn">取消</a>
                    </div>
                    <div class="overlay">
                        <i class="fa fa-refresh fa-spin"></i>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<!-- /.modal -->